import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'a1',
        component: HomeView
    },
    {
        path: '/about',
        name: 'a2',
        component: () =>
            import ('../views/AboutView.vue')
    },
    {
        path: '/info',
        component: () =>
            import ('../views/info.vue')
    }
]

const router = new VueRouter({
    routes
})

export default router